﻿using System.Collections.Generic;
//asdfasfasfasdfasd
namespace ProcelNasEscolas.Data
{
    public interface IDAO<T>
    {
        IList<T> QueryHQL(string query);

        T QueryHQLElement(string query);

        T FindById(object id);

        IList<T> FindAll();

        void Save(T entity);

        void Update(T entity);

        void SaveOrUpdate(T entity);

        void Delete(T entity);

        T Refresh(T entity);

        T Load(object id);

        void FlushAll();

        void Reconnect(T entity);

        void Disconnect(T entity);
    }
}
